using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 社区帖子点赞仓储接口
    /// </summary>
    public interface ICommunityPostLikeRepository : IRepository<CommunityPostLike>
    {
        Task<IEnumerable<CommunityPostLike>> GetByPostIdAsync(Guid postId);
        Task<IEnumerable<CommunityPostLike>> GetByUserIdAsync(Guid userId);
        Task<bool> IsLikedAsync(Guid userId, Guid postId);
        Task<int> GetLikeCountAsync(Guid postId);
    }
}